package com.xiaozhou.mapper;

import com.xiaozhou.pojo.dto.Stock4EvrDayDomain;
import com.xiaozhou.pojo.dto.Stock4MinuteDomain;
import com.xiaozhou.pojo.vo.StockBlockRtInfoVo;
import com.xiaozhou.pojo.vo.StockInfo;
import com.xiaozhou.pojo.vo.StockMarketIndexInfoVo;
import com.xiaozhou.pojo.vo.UpList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * CTassName: StockMarketIndexMapper
 * Package: com.xiaozhou.mapper
 * Description:
 *
 * @Author xw
 * @Create 2023/11/21 15:48
 * @Version 1.0
 */
@Mapper
public interface StockMarketIndexMapper {
    /**
     * 大盘板块
     * 国内⼤盘指数功能
     */
    List<StockMarketIndexInfoVo> getalldata();


    /**
     * 板块指数功能实现
     */

    List<StockBlockRtInfoVo> sectorAllLimits();

    List<StockBlockRtInfoVo> selectStockRtInfo();

    /**
     * 涨幅榜功能实现
     */
    List<StockInfo> getIncrease();


    /*涨停*/
    List<UpList> getUpdownCount();

    /*跌停*/
    List<UpList> getDownListCount();

    /*股票成交量对⽐功能*/
    List<Map> getTradeAmt(@Param("preStartTime") Date preStartTime,
                          @Param("preEndTime") Date preEndTime);


    /*
     * 个股分时涨跌幅度统计功能
     * */
    List<Map<String, Integer>> stockUpdown();


    /*
    * 个股分时图行情功能
    * */
    List<Stock4MinuteDomain> stockScreenTimeSharing(
            @Param("stockCode") String
            stockCode,@Param("startTime") Date startTime,
            @Param("endTime") Date endTime

    );

    List<Stock4EvrDayDomain> getStockInfo4EvrDay(@Param("stockCode") String stockCode,
                                                 @Param("startTime") Date startTime,
                                                 @Param("endTime") Date endTime);
}
